<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
<script type="text/javascript">
$(function(){
});
</script>
</head>
<body >
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="rof_saveresource.html" method="post" enctype="multipart/form-data">
		<table width="600" border="0" style="margin: 5px;">
			<tr><td height="25">主键 : </td></tr>
			<tr><td height="25"><input type="text" name="resNo" id="resNo" style="width: 320px;" value="<s:property value="resBean.resNo"/>"/></td></tr>
			<tr><td height="25">选择操作员 : </td></tr>
			<tr><td height="25"><s:select id="operNo" name="optNo" list="operatorList" listValue="optId+' ['+optName+']'" listKey="optNo" headerKey="" headerValue="未选择" value="resBean.optNo"></s:select></td></tr>
			<tr><td height="25">资源名称 : </td></tr>
			<tr><td height="25"><input type="text" style="width: 240px;" name="resName" id="resName" value="<s:property value="resBean.resName"/>"/></td></tr>
			<tr><td height="25">资源对应访问方式 : </td></tr>
			<tr><td height="25"><s:select id="resAccess" name="resAccess" list="#{'NORMAL':'正常'}"  value="resBean.resAccess"/>	</td></tr>
			<tr><td height="25">资源对应类(ACTION) : </td></tr>
			<tr><td height="25"><input type="text" name="resAction" id="resAction" value="<s:property value="resBean.resAction"/>"/></td></tr>
			<tr><td height="25">资源对应方法(METHOD) : </td></tr>
			<tr><td height="25"><input type="text" name="resMethod" id="resMethod" value="<s:property value="resBean.resMethod"/>"/></td></tr>
			<tr><td height="25">控制对象(字段) : </td></tr>
			<tr><td height="25"><input type="text" style="width: 240px;" name="resTarget" id="resTarget" value="<s:property value="resBean.resTarget"/>"/></td></tr>
			<tr><td height="25">控制类型(比较方式) : </td></tr>
			<tr><td height="25"><s:select id="resType" name="resType" list="#{'DATE':'日期类型','NUMBER':'数字类型','TEXT':'文本类型'}"  value="resBean.resType"/></td></tr>
			<tr><td height="25">控制内容(值) : </td></tr>
			<tr><td height="25"><input type="text" style="width: 320px;" name="resTerm" id="resTerm" value="<s:property value="resBean.resTerm"/>"/>&nbsp;多个值用逗号隔开,如果是日期则单位为(天)</td></tr>
			<tr><td height="25">状态 : </td></tr>
			<tr><td height="25"><s:radio name="resState"  id="resState"  list="#{'1':'正常','0':'停用'}" listKey="key" listValue="value" value="resBean.resState"/></td></tr>
			<tr><td height="25">备注 : </td></tr>
			<tr><td height="25"><textarea name="resRemark" id="resRemark" /><s:property value="resBean.resRemark"/></textarea></td></tr>
			<tr><td height="25"> </td></tr>
			<tr>
				<td height="25">
					<input type="button" class="submit" value="提交单据" onclick="sform.submit();"/>
					<input type="button" class="submit" value="返回" onclick="history.go(-1);"/>
				</td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>

